package echo.future;

import echo.protocol.MessageProtocol;

public class ReceiveInvoker implements Runnable{
    private MessageProtocol messageProtocol;

    public ReceiveInvoker(MessageProtocol messageProtocol) {
        this.messageProtocol = messageProtocol;
    }

    @Override
    public void run() {
        DefaultFuture.received(messageProtocol);
    }
}
